package com.example.seckill.domain.model;

import com.example.seckill.domain.share.ValueObject;
import org.springframework.util.ObjectUtils;

public enum OrderStatus implements ValueObject<OrderStatus> {
    CREATED,PAYED,ACCOMPLISHED;


    @Override
    public boolean sameValueAs(OrderStatus other) {
        return ObjectUtils.isEmpty(other) && other.equals(this);
    }
}
